<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>

</head>
<body>
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="editModalLabel">
    <div class="modal-dialog" role="document"  style="width: 50%">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="editModalLabel">新增代理商</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id = "agentEdit">
                		<input type="hidden" name="id" id="edit_agentId" value="${param.agentId}" />
                        
                        <fieldset class="plan-left-info-fieldset">
                                <legend><span>基本信息</span></legend>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><span class="required">*</span>代理商名称</label>
                                    <div class="col-sm-10">
                                    <input type="text" maxlength="32" class="form-control" id="edit_agentName" name="agentName"
                                           placeholder="请输入代理商名称" data-easyform="length:1 32;char-chinese;"
                                           data-message="请输入代理商名称" require="true">
                                    </div>
                                </div >
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><span class="required">*</span>代理商身份标识</label>
                                    <div class="col-sm-10">
                                    <input  disabled type="text" maxlength="32" class="form-control" id="edit_identity" name="identity"
                                           placeholder="代理商身份标识" data-easyform="length:1 32;char-chinese;"
                                           data-message="代理商身份标识" require="false">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><span class="required">*</span>电话号码</label>
                                    <div class="col-sm-10">
                                    <input type="tel" maxlength="13" class="form-control" id="edit_phoneNumber" name="phoneNumber"
                                           placeholder="请输入电话号码" data-easyform="length:1 13;char-chinese;"
                                           data-message="请输入手机号码" require="true">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><span class="required">*</span>联系地址</label>
                                    <div class="col-sm-10">
                                    <input type="text" maxlength="256" class="form-control" id="edit_address" name="address"
                                           placeholder="请输入联系地址" data-easyform="length:1 256;char-chinese;"
                                           data-message="请输入联系地址" require="true">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><span class="required">*</span>账号</label>
                                    <div class="col-sm-10">
                                    <input type="text" class="form-control" maxlength="32" id="edit_account" name="account" 
                                    		placeholder="请输入账号(唯一)" data-easyform="length:1 32;char-chinese;"
                                           data-message="请输入代理商账号" require="true"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><span class="required">*</span>密码</label>
                                    <div class="col-sm-10">
                                    <input type="password" class="form-control" maxlength="32"  id="edit_password" name="password" 
                                    		placeholder="请输入密码" data-easyform="length:1 32;char-chinese;"
                                           data-message="请输入密码" require="true"/>
                                    </div>
                                </div>
                                <legend><span>服务器信息</span></legend>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><span class="required">*</span>服务器名称</label>
                                    <div class="col-sm-10">
                                    <select class="form-control" id="edit_serverId" name="serverId">
                                    	<option value="">--请选择--</option>
                                    </select>
                                  <%--   <input type="text" class="form-control" maxlength="32" id="edit_serverName" name="serverName" 
                                    		placeholder="请输入服务器名称" data-easyform="length:1 32;char-chinese;"
                                           data-message="请输入服务器名称" require="true"/>
                                    </div> --%>
                                </div>
                                
                        </fieldset>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" >取消</button>
                <button type="button" class="btn btn-primary" id="saveAgent" onclick="saveAgent();">保存</button>
            </div>
        </div>
    </div>
</div>

</body>
</html>
